﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class RegisterAccount : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString);
            conn.Open();
            string checkStudent = "select * from StudentAccount where stu_username = '" + txtUsername + "'";
            SqlCommand comm = new SqlCommand(checkStudent, conn);
            conn.Close();
        }
    }

    protected void btnLogin_Click(object sender, EventArgs e)
    {
        try
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString);
            conn.Open();
            string insertStudent = "insert into StudentAccount values ()";
        }
        catch (Exception)
        {
            
            throw;
        }
    }
}